﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HotelManager.Data_Transfer_Layer
{
    class khachhangDTO
    {
        #region Variables
        private int kh_id, kh_tongsongayo, kh_tongsotienphong, kh_tongsotiendv, kh_diemcong;
        private string kh_hoten, kh_cmnd, kh_sodt, kh_gioitinh, kh_loaikh;
        #endregion

        #region Properties
        public int Kh_id
        {
            get { return kh_id; }
            set { kh_id = value; }
        }
        public string Kh_hoten
        {
            get { return kh_hoten; }
            set { kh_hoten = value; }
        }
        public string Kh_cmnd
        {
            get { return kh_cmnd; }
            set { kh_cmnd = value; }
        }
        public string Kh_gioitinh
        {
            get { return kh_gioitinh; }
            set { kh_gioitinh = value; }
        }

        public string Kh_sodt
        {
            get { return kh_sodt; }
            set { kh_sodt = value; }
        }
        public int Kh_diemcong
        {
            get { return kh_diemcong; }
            set { kh_diemcong = value; }
        }

        public int Kh_tongsotiendv
        {
            get { return kh_tongsotiendv; }
            set { kh_tongsotiendv = value; }
        }

        public int Kh_tongsotienphong
        {
            get { return kh_tongsotienphong; }
            set { kh_tongsotienphong = value; }
        }

        public int Kh_tongsongayo
        {
            get { return kh_tongsongayo; }
            set { kh_tongsongayo = value; }
        }
        public string Kh_loaikh
        {
            get { return kh_loaikh; }
            set { kh_loaikh = value; }
        }

        #endregion

        public khachhangDTO()
        {
            kh_id = -1;
            kh_hoten = "";
            kh_cmnd = "";
            kh_gioitinh = "";
            kh_sodt = "";
            kh_diemcong = 0;
            kh_tongsongayo = 0;
            kh_tongsotiendv = 0;
            kh_tongsotienphong = 0;
            kh_loaikh = "Normal";
        }
        public khachhangDTO(int kh_id, string kh_hoten, string kh_cmnd, string kh_sodt, string kh_gioitinh,int kh_tongsongayo,int kh_tongsotienphong,int kh_tongsotiendv,int kh_diemcong,string kh_loaikh)
        {
            this.kh_sodt = kh_sodt;
            this.kh_id = kh_id;
            this.kh_hoten = kh_hoten;
            this.kh_gioitinh = kh_gioitinh;
            this.kh_cmnd = kh_cmnd;
            this.kh_tongsongayo = kh_tongsongayo;
            this.kh_tongsotiendv = kh_tongsotiendv;
            this.kh_tongsotienphong = kh_tongsotienphong;
            this.kh_diemcong = kh_diemcong;
            this.kh_loaikh = kh_loaikh;
        }
    }
}
